<template>
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item :to="{ path: '/' }" v-for="(item,index) in breadList" :key="item.path">
   <router-link to="/welcome" v-if="index==0">{{item.meta.title}}</router-link>
   <span v-else> {{item.meta.title}}</span>
    </el-breadcrumb-item>
  </el-breadcrumb>
</template>
<script>
export default {
  name: "BreadCrumb",
  data() {
    return {};
  },
  computed: {
    breadList() {
      return this.$route.matched;
    },
  },
  mounted() {
  },
};
</script>
<style scoped></style>
